<template>
  <div style="text-align: center">
    <el-image :src="src"></el-image>
  </div>
</template>

<script>

import {bookImgUrl} from "../config/globalConst";

export default {
  name: "Main",
  data(){
    return{
      src: bookImgUrl + "暂无内容.png"
    }
  },
  created() {
    this.axios.get('/api/tokenVerify', {
      headers: {
        "Authorization": this.$store.state.token
      }
    })
        .then(response => {
          if (response.data.code == 200) {
            console.log("验证成功");
            console.log(response.data);
          } else if (response.data.code == 401) {
            this.$router.push('/login')
          } else {
            console.log("服务异常")
          }
        })
  }
}
</script>

<style scoped>

</style>